#-*- coding:gbk -*-
'''
Created on 2012-8-6

@author: game-netease
'''
import npc

class NPC(npc.NPC):
    '''
    MP NPC
    '''
    def __init__(self, position):
        npc.NPC.__init__(self, position, 'mediciner')
        
    def process(self, **argv):
        player = argv.get('player', None)
        if player != None:
            if player.getGold() - 20 >= 0:
                player.updateGold(player.getGold() - 20)
                player.setCurrentMp(min(player.getMp(), player.getCurrentMp() + 10))